import os

from flask import Flask

app = Flask(__name__)

# 启用session
app.config['SECRET_KEY'] = os.urandom(24) # 生成随机数种子，用于生成sessionId

from controller.user import user
app.register_blueprint(user)
from controller.article import article
app.register_blueprint(article)

if __name__ == '__main__':
    app.run()